package top.lshaci.learning.springboot.jpaquerydsl.vo;

import lombok.Data;
import top.lshaci.learning.springboot.jpaquerydsl.core.DslFrom;
import top.lshaci.learning.springboot.jpaquerydsl.core.DslResult;
import top.lshaci.learning.springboot.jpaquerydsl.entity.QCity;
import top.lshaci.learning.springboot.jpaquerydsl.entity.QProvince;

/**
 * CityVo
 *
 * @author liangxu
 */
@Data
@DslFrom(QCity.class)
public class CityVo {

    private Long id;

    @DslResult(field = "name")
    private String cityName;

    @DslResult(field = "name", fromClass = QProvince.class)
    private String provinceName;
}
